package com.neuedu.learn;

public class Demo4 {

    /**
     * 运算  关系运算 比较运算
     * @param arg
     */
    public static void main(String arg[]){
        double pi = 3.14;
        double pi2 = 3.1415926;
        double pi3 = 3.1415926;

        System.out.println("(pi == pi2) = " + (pi == pi2));
        System.out.println("(pi > pi2) = " + (pi > pi2));
        System.out.println("(pi < pi2) = " + (pi <  pi2));
        System.out.println("(pi >= pi2) = " + (pi >= pi2));
        System.out.println("(pi <= pi2) = " + (pi <= pi2));
        System.out.println("(pi != pi2) = " + (pi !=  pi2));


    }





}
